package mybag4;

public class myRunnable implements Runnable{
    int money=0;
    @Override
    public void run() {
        for(int i=1;i<=100;i++){
            System.out.println(Thread.currentThread().getName()+"第"+i+"次存款");
            money=money+100;
            System.out.println("当前存款为"+money);
        }
    }
}
